// 导入相关模块
import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Hot from '../pages/Hot'
import Category from '../pages/Category'
import  Gamelist from '../pages/GameList'
import GameRoom from '../pages/GameRoom'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Hot
    },
    {
      path:'/cat',
      component:Category
    },
    {
      path:'/games/:id/:gname',
      component:GameRoom
    }
  ]
})
